<?php $key=isset($_REQUEST["key"])?$_REQUEST["key"]:"";
$val=isset($_REQUEST["val"])?$_REQUEST["val"]:"";
	if($key==1)
	{
	echo "<script>
	$(document).ready(function() {
		$('#message-red').show(1000);
		$('#message-red td:first').html('$val');
		});
	</script>";
	}
	if($key==2)
	{
	echo "<script>
	$(document).ready(function() {
		$('#message-green').show(1000);
		$('#message-green td:first').html('$val');
		});
	</script>";
	}
	if($key==3)
	{
	echo "<script>
	$(document).ready(function() {
		$('#message-yellow').show(1000);
		$('#message-yellow td:first').html('$val');
		});
	</script>";
	}
	if($key==4)
	{
	echo "<script>
	$(document).ready(function() {
		$('#message-blue').show(1000);
		$('#message-blue td:first').html('$val');
		});
	</script>";
	}
?>